// AFTER-WARNING: Parameter 'l' is never used, could be renamed to _
// AFTER-WARNING: Variable 'num' is never used

class My<T> {
    fun bar(double: (a: T & Any, l: String) -> T & Any, b: T): T & Any {
        return double(b!!, "")
    }
}

fun <T> foo(x: T) {
    val num = My<T>().bar({ <caret>y, l -> y }, x)
}
